package pku.ss.movieSystem.services;

import daos.Session;

public interface IBookTicketsService {

	public String getMovieSession(int movieId, String action);
	/** return moviePoster, movieName, movieLanguage, movieTime **/
	public String getMovieInfoForBooking(int movieId);
	
	/**
	 * get session information according to sessionid, including movie brief info
	 * @author SerenaMing
	 * @param sessionId
	 * @return sessionSeats,sessionDate,moviePoster, movieName, movieLanguage, movieTime 
	 */
	public String getSessionJSONInfo(int sessionId);
	
	/**
	 * get session information according to sessionid, including movie brief info
	 * @author SerenaMing
	 * @param sessionId
	 * @return session
	 */
	public Session getSessionInfo(int sessionId);
	
	/**
	 * update session seats status after booking tickets
	 * @author SerenaMing
	 * @param sessionId
	 * @param sessionSeats
	 */
	public void updateSessionSeats(int sessionId, String sessionSeats);
	
	/**
	 * add user's order information
	 * @author SerenaMing
	 * @param sessionId
	 * @param userId
	 * @param seatNos
	 * @param quantity
	 * @param orderPrice
	 */
	public void addOrder(int sessionId, int userId, String seatNos, int quantity, float orderPrice);
}
